package classfile

type ConstantStringInfo struct {
	tag          uint8
	string_index uint16
	cp ConstantPool
}

func (self *ConstantStringInfo) readInfo(reader *ClassReader) {
	self.tag = 8
	self.string_index = reader.readUint16()
}

func (self *ConstantStringInfo) String() string {
	return self.cp.getUtf8(self.string_index)
}
